# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-camera
pkgver=1.4.11
_commit=0671cf59cb1c91247ea348a561ee6749a096a209
pkgrel=1
pkgdesc='Tool to view camera, take photo and video'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-camera"
license=('GPL3')
depends=('deepin-qt5integration' 'deepin-qt-dbus-factory' 'deepin-image-editor' 'ffmpeg'
         'ffmpegthumbnailer' 'portaudio' 'pulseaudio' 'qt5-multimedia')
makedepends=('git' 'cmake' 'deepin-gettext-tools' 'ninja' 'qt5-tools')
groups=('deepin-extra')
source=("git+https://github.com/linuxdeepin/deepin-camera.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd deepin-camera
  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
  ninja
}

package() {
  cd deepin-camera
  DESTDIR="$pkgdir" ninja install
}
